package org.grottarossa.tms.ui.console.main;


import java.util.ResourceBundle;

import org.grottarossa.tms.ui.console.Console;
import org.grottarossa.ui.core.ApplicationSession;
import org.grottarossa.ui.core.i18n.DM;

/***
 * Genera l'oggetto che rappresenta la console principale
 * @author 
 *
 */
public class MainConsoleFactory
{
	protected ResourceBundle localizer = DM.instance().getBundle(Console.class.getPackage().getName() + ".CommonMessages");
	private final ApplicationSession m_appSession;

	public MainConsoleFactory(ApplicationSession appSession)
	{
		this.m_appSession = appSession;
	}

	public MainConsoleView createMainConsole()
	{
		MainConsoleView view = new MainConsoleView(m_appSession, localizer);
		MainConsolePresenter presenter = new MainConsolePresenter(view, m_appSession);
		return view;
	}
}
